<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta http-equiv="pragma" content="no-cache" />
	<link rel="stylesheet" href="/css/style.css" type="text/css"/>
	<script type="text/javascript" src="/js/jquery.js"></script>
	<script type="text/javascript" src="/js/util.js"></script>
</head>
<script type="text/javascript">
//////////////////////////////////////////////////////////////////////
////  email = "wenpin.qian@happyelements.com"                     ////
////  team = "Athene"                                             ////
////  warnings = "This is generated page,Do Not Modify!";         ////
////  tips = "Opera & IE not supported|Chrome & Safari sugguested"////
//////////////////////////////////////////////////////////////////////
var getitemJsonListUrl = "/item/getJsonList/";
$(document).ready(function() {
	startMasker();
	$.ajax({
		type: "GET",
		url: getitemJsonListUrl,
		data: "",
		dataType: "json",
		success: function(data) {
			if(data.code > 0) {
				var resultList = data.result;
				var renderHtml = "[<br/>";
				for(var i=0;i<resultList.length;i++) {
					var result = resultList[i];
					$("#itemId").html(result.itemId);
					$("#deployId").html(result.deployId);
					$("#name").html('"'+result.name+'"');					$("#desc").html('"'+result.desc+'"');					$("#categoryId").html(result.categoryId);					$("#typeId").html(result.typeId);					$("#attackType").html(result.attackType);					$("#level").html(result.level);					$("#qualityId").html(result.qualityId);					$("#enchantTime").html(result.enchantTime);					$("#bindType").html(result.bindType);					$("#props").html(result.props);					$("#propertySet").html(result.propertySet);					$("#requiredLevel").html(result.requiredLevel);					$("#requiredCareerId").html(result.requiredCareerId);					$("#requiredGenderId").html(result.requiredGenderId);					$("#unique").html(result.unique);					$("#maxStack").html(result.maxStack);					$("#recyclingPrice").html(result.recyclingPrice);					$("#canSell").html(result.canSell);					$("#skillId").html(result.skillId);					$("#itemres").html(result.itemres);										
					renderHtml = renderHtml + $("#tpl_item").html();
					if(i < resultList.length - 1) {
						renderHtml = renderHtml + ","
					}
				}
				renderHtml = renderHtml + "]<br/>";
				$("#item_info").html(renderHtml);
				stopMasker();
			}else {
				errDialog(data.message);
			}
		}
});
});

</script>
<body>
<div class="json" id="item_info">

</div>
<div style="display:none" id="tpl_item">
<div class="json">
{<br/>
<span class="jsonkey">itemId:</span><span id="itemId"></span>,<br/>
<span class="jsonkey">deployId:</span><span id="deployId"></span>,<br/>
<span class="jsonkey">name:</span><span id="name" class="jsonvalue"></span>,<br/>
<span class="jsonkey">desc:</span><span id="desc" class="jsonvalue"></span>,<br/>
<span class="jsonkey">categoryId:</span><span id="categoryId" class="jsonvalue"></span>,<br/>
<span class="jsonkey">typeId:</span><span id="typeId" class="jsonvalue"></span>,<br/>
<span class="jsonkey">attackType:</span><span id="attackType" class="jsonvalue"></span>,<br/>
<span class="jsonkey">level:</span><span id="level" class="jsonvalue"></span>,<br/>
<span class="jsonkey">qualityId:</span><span id="qualityId" class="jsonvalue"></span>,<br/>
<span class="jsonkey">enchantTime:</span><span id="enchantTime" class="jsonvalue"></span>,<br/>
<span class="jsonkey">bindType:</span><span id="bindType" class="jsonvalue"></span>,<br/>
<span class="jsonkey">props:</span><span id="props" class="jsonvalue"></span>,<br/>
<span class="jsonkey">propertySet:</span><span id="propertySet" class="jsonvalue"></span>,<br/>
<span class="jsonkey">requiredLevel:</span><span id="requiredLevel" class="jsonvalue"></span>,<br/>
<span class="jsonkey">requiredCareerId:</span><span id="requiredCareerId" class="jsonvalue"></span>,<br/>
<span class="jsonkey">requiredGenderId:</span><span id="requiredGenderId" class="jsonvalue"></span>,<br/>
<span class="jsonkey">unique:</span><span id="unique" class="jsonvalue"></span>,<br/>
<span class="jsonkey">maxStack:</span><span id="maxStack" class="jsonvalue"></span>,<br/>
<span class="jsonkey">recyclingPrice:</span><span id="recyclingPrice" class="jsonvalue"></span>,<br/>
<span class="jsonkey">canSell:</span><span id="canSell" class="jsonvalue"></span>,<br/>
<span class="jsonkey">skillId:</span><span id="skillId" class="jsonvalue"></span>,<br/>
<span class="jsonkey">itemres:</span><span id="itemres" class="jsonvalue"></span><br/>
</br>
}
</div>
</div>
<div class="maskerContent" id="framemasker" name="framemasker">
	<iframe class="maskframe" src="/pages/core/Masker.html"></iframe>
</div>
</body>